<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src='./bind.js'></script>
    <script src="./call.js"></script>
</head>

<body>
    <script>
        function add(a, b) {
            return a + b + this.c
        }
        obj = {
            c: 10
        }
        let res = bind(add, obj, [1, 2])
        console.log(res)
        fn1 = bind(add, obj)
        console.log(fn1(1, 2))
        fn2 = add.bind(obj, 10, 100)
        console.log(fn2)
        console.log(fn2(4, 5))
    </script>
</body>

</html>